using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace PocketLibrary.Media
{
    public class MediaHistoryItem
    {
        const int HistoryItemWidth = 64;

        string _blogname = "";
        int _blogid = -1;
        BlogType _bltype = BlogType.UnSpecified;
        DateTime _uploadeddate;
        string _filename = "";
        Bitmap _itemBitmap = null;
        string _name = "";

        /// <summary>
        /// name of image
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public Bitmap ItemBitmap
        {
            get
            {
                if (_itemBitmap != null)
                    return _itemBitmap;
                else
                {
                    _itemBitmap = new Bitmap(HistoryItemWidth, HistoryItemWidth);
                    return _itemBitmap;
                }
            }
            set { _itemBitmap = value; }
        }

        /// <summary>
        ///  full path to history item
        /// </summary>
        public string Filename
        {
            get { return _filename; }
            set { _filename = value; }
        }

        /// <summary>
        /// date when item was uploaded to blog
        /// </summary>
        public DateTime UploadedDate
        {
            get { return _uploadeddate; }
            set { _uploadeddate = value; }
        }

        public BlogType BlogApiType
        {
            get { return _bltype; }
            set { _bltype = value; }
        }

        public string BlogName
        {
            get { return _blogname; }
            set { _blogname = value; }
        }

        public int BlogId
        {
            get { return _blogid; }
            set { _blogid = value; }
        }


    }
}
